import 'eventable.dart';
import 'focus.dart';
import 'world.dart';

class CloseEvent extends Eventable {
  CloseEvent() : super('关闭(c)'){
    code = 'c';
  }
  
  @override
  void doEvent(owner) {
    Focus.instance.overlays.removeLast();
    World.instance.removeByName(CloseEvent());
  }
}